﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001FF RID: 511
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueBuffEnhanceInfo : IMessage<ChessRogueBuffEnhanceInfo>, IMessage, IEquatable<ChessRogueBuffEnhanceInfo>, IDeepCloneable<ChessRogueBuffEnhanceInfo>, IBufferMessage
	{
		// Token: 0x170006B5 RID: 1717
		// (get) Token: 0x060016FE RID: 5886 RVA: 0x00041819 File Offset: 0x0003FA19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueBuffEnhanceInfo> Parser
		{
			get
			{
				return ChessRogueBuffEnhanceInfo._parser;
			}
		}

		// Token: 0x170006B6 RID: 1718
		// (get) Token: 0x060016FF RID: 5887 RVA: 0x00041820 File Offset: 0x0003FA20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueBuffEnhanceInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006B7 RID: 1719
		// (get) Token: 0x06001700 RID: 5888 RVA: 0x00041832 File Offset: 0x0003FA32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueBuffEnhanceInfo.Descriptor;
			}
		}

		// Token: 0x06001701 RID: 5889 RVA: 0x00041839 File Offset: 0x0003FA39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceInfo()
		{
		}

		// Token: 0x06001702 RID: 5890 RVA: 0x00041844 File Offset: 0x0003FA44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceInfo(ChessRogueBuffEnhanceInfo other) : this()
		{
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.buffId_ = other.buffId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001703 RID: 5891 RVA: 0x00041890 File Offset: 0x0003FA90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceInfo Clone()
		{
			return new ChessRogueBuffEnhanceInfo(this);
		}

		// Token: 0x170006B8 RID: 1720
		// (get) Token: 0x06001704 RID: 5892 RVA: 0x00041898 File Offset: 0x0003FA98
		// (set) Token: 0x06001705 RID: 5893 RVA: 0x000418A0 File Offset: 0x0003FAA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x170006B9 RID: 1721
		// (get) Token: 0x06001706 RID: 5894 RVA: 0x000418A9 File Offset: 0x0003FAA9
		// (set) Token: 0x06001707 RID: 5895 RVA: 0x000418B1 File Offset: 0x0003FAB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffId
		{
			get
			{
				return this.buffId_;
			}
			set
			{
				this.buffId_ = value;
			}
		}

		// Token: 0x06001708 RID: 5896 RVA: 0x000418BA File Offset: 0x0003FABA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueBuffEnhanceInfo);
		}

		// Token: 0x06001709 RID: 5897 RVA: 0x000418C8 File Offset: 0x0003FAC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueBuffEnhanceInfo other)
		{
			return other != null && (other == this || (object.Equals(this.CostData, other.CostData) && this.BuffId == other.BuffId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600170A RID: 5898 RVA: 0x00041918 File Offset: 0x0003FB18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.BuffId != 0U)
			{
				num ^= this.BuffId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600170B RID: 5899 RVA: 0x0004196D File Offset: 0x0003FB6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600170C RID: 5900 RVA: 0x00041975 File Offset: 0x0003FB75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600170D RID: 5901 RVA: 0x00041980 File Offset: 0x0003FB80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.CostData);
			}
			if (this.BuffId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600170E RID: 5902 RVA: 0x000419DC File Offset: 0x0003FBDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.BuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600170F RID: 5903 RVA: 0x00041A34 File Offset: 0x0003FC34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueBuffEnhanceInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.BuffId != 0U)
			{
				this.BuffId = other.BuffId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001710 RID: 5904 RVA: 0x00041A9C File Offset: 0x0003FC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001711 RID: 5905 RVA: 0x00041AA8 File Offset: 0x0003FCA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BuffId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x04000986 RID: 2438
		private static readonly MessageParser<ChessRogueBuffEnhanceInfo> _parser = new MessageParser<ChessRogueBuffEnhanceInfo>(() => new ChessRogueBuffEnhanceInfo());

		// Token: 0x04000987 RID: 2439
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000988 RID: 2440
		public const int CostDataFieldNumber = 5;

		// Token: 0x04000989 RID: 2441
		private ItemCostData costData_;

		// Token: 0x0400098A RID: 2442
		public const int BuffIdFieldNumber = 12;

		// Token: 0x0400098B RID: 2443
		private uint buffId_;
	}
}
